package com.nuanshui.heatedloan.fund.model;

/**
 * 支付的接口类型
 * 
 * @ClassName: PayResult
 * @author guohao
 * @date 2016年3月7日 下午5:39:11
 *
 */
public class PayResult {

	private String status = PayResultStatusType.SUCCESS;// 成功

	private String msg = "";// 失败的原因描述

	// 下面的参数是生成账单需要的数据

	private String title;// 支付账单标题
	private String dealNum;
	private String billType; //生成账单的第一类型 @see UserAccountBill.type
	private Integer subType; //生成账单的第二类型 @see UserAccountBill.subType
	private String bizId;//生成账单需要的 bizId


	private String userId;
	private Long price; //如果设置了就用这个价格生成账单


	public String getBizId() {
		return bizId;
	}

	public void setBizId(String bizId) {
		this.bizId = bizId;
	}

	public Long getPrice() {
		return price;
	}

	public void setPrice(Long price) {
		this.price = price;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDealNum() {
		return dealNum;
	}

	public void setDealNum(String dealNum) {
		this.dealNum = dealNum;
	}

	
	

	public String getBillType() {
		return billType;
	}

	public void setBillType(String billType) {
		this.billType = billType;
	}

	public Integer getSubType() {
		return subType;
	}

	public void setSubType(Integer subType) {
		this.subType = subType;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public boolean isSuccess() {
		return PayResultStatusType.SUCCESS.equals(status);
	}

	public class PayResultStatusType {

		public static final String AUTH_FAIL = "1000";// 表示认证校验失败

		public static final String ERROR_PAY_PRICE = "1001";// 支付的金额有误
		
		public static final String ERROR_PAY_TYPE = "1002";//错误的支付方式（比如 充值就支持余额支付）

		public static final String WALLET_PRICE_ERROR = "1003";// 表示钱包的余额不足
		public static final String ERROR_PAY_NUM = "1004";//错误的支付号（传入的支付号找不到对应的业务数 或者 是支付号长度以及组成有问题）
		
		
		public static final String ERROR_BRANCH = "1099";// 未识别 条件

		

		public static final String BIZ_ERROR = "1100";// 业务错误

		public static final String ERROR_ORDER_STATUS = "1101";// 订单状态不正确
		
		public static final String REPEAT_CONFIRM = "1200";//重复确认
		

		public static final String SUCCESS = "200";// 表示成功

	}

}
